package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.FoodItem;

import java.util.List;

public interface FoodItemService {
    void add(FoodItem foodItem);

    void update(FoodItem foodItem);

    void delete(Integer id);

    FoodItem findById(Integer id);

    List<FoodItem> findAll();

    Page<FoodItem> search(String search, int page, int size);
    Page<FoodItem> searchByMealId(Integer mealId,String search, int page, int size);
}
